package com.itheima02.memory;

public class Demo1_Memory {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.name = "张三";
        s1.age = 23;
        s1.show();

        Student s2 = new Student();
        s2.name = "李四";
        s2.age = 24;
        s2.show();
    }
}

class Student {
    String name;
    int age;

    static String school = "自由大学";

    public void show() {
        System.out.println
                (name + "..." + age + "..." + school);
    }
}
